reftests: Fix rendering issues with border-image reftest
authorBenjamin Otte <otte@redhat.com>
Tue, 19 Nov 2013 01:27:47 +0000 (02:27 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 19 Nov 2013 01:29:48 +0000 (02:29 +0100)
When downscaling images, Cairo apparently uses algorithms different
enough to make this test trip over. So add the downscaled image as the
reference instead of downscaling the previous reference image.

Fixes the border-image reftest. For real now.

testsuite/reftests/Makefile.am
testsuite/reftests/border-image-3-balls-green-squished.png [new file with mode: 0644]
testsuite/reftests/border-image-3-balls-yellow-squished.png [new file with mode: 0644]
testsuite/reftests/border-image-repeat.css
testsuite/reftests/border-image-repeat.ref.ui
testsuite/reftests/border-image-repeat.sh

index 4f052f240ac0e5c21f3fa56d0ba44db799296aa8..30c471de0eb2c13c57172d7b2e39a5ee739242d2 100644 (file)
@@ -85,7 +85,9 @@ testdata = \
        border-image-ball-yellow.png \
        border-image-balls.png \
        border-image-3-balls-green.png \
+       border-image-3-balls-green-squished.png \
        border-image-3-balls-yellow.png \
+       border-image-3-balls-yellow-squished.png \
        border-image-excess-size.css \
        border-image-excess-size.ref.ui \
        border-image-excess-size.ui \
diff --git a/testsuite/reftests/border-image-3-balls-green-squished.png b/testsuite/reftests/border-image-3-balls-green-squished.png
new file mode 100644 (file)
index 0000000..1ecf314
Binary files /dev/null and b/testsuite/reftests/border-image-3-balls-green-squished.png differ
diff --git a/testsuite/reftests/border-image-3-balls-yellow-squished.png b/testsuite/reftests/border-image-3-balls-yellow-squished.png
new file mode 100644 (file)
index 0000000..151a879
Binary files /dev/null and b/testsuite/reftests/border-image-3-balls-yellow-squished.png differ
index 61d331e3ba30c59a00f0332077b1f39f315d694c..35db9585f858accfae4c3318a896d792bd098183 100644 (file)
@@ -44,6 +44,11 @@ GtkButton {
   background-color: black;
 }
 
+#yellow-3-round {
+  background-image: url("border-image-3-balls-yellow-squished.png");
+  background-color: black;
+}
+
 #green {
   background-image: url("border-image-ball-green.png");
   background-color: black;
@@ -53,3 +58,8 @@ GtkButton {
   background-image: url("border-image-3-balls-green.png");
   background-color: black;
 }
+
+#green-3-round {
+  background-image: url("border-image-3-balls-green-squished.png");
+  background-color: black;
+}
index 48765ab6e90ca1cdca9527eb78e42f32f43eb0bf..b81e4c66041cec15de7693aedd9960ec9ea108ce 100644 (file)
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-stretch-hround0">
-            <property name="name">yellow-3</property>
+            <property name="name">yellow-3-round</property>
             <property name="width_request">52</property>
             <property name="height_request">20</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-stretch-hround1">
-            <property name="name">yellow-3</property>
+            <property name="name">yellow-3-round</property>
             <property name="width_request">52</property>
             <property name="height_request">20</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-repeat-hround0">
-            <property name="name">yellow-3</property>
+            <property name="name">yellow-3-round</property>
             <property name="width_request">52</property>
             <property name="height_request">20</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-repeat-hround1">
-            <property name="name">yellow-3</property>
+            <property name="name">yellow-3-round</property>
             <property name="width_request">52</property>
             <property name="height_request">20</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-stretch-round-vround0">
-            <property name="name">green-3</property>
+            <property name="name">green-3-round</property>
             <property name="width_request">20</property>
             <property name="height_request">52</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-stretch-round-vround1">
-            <property name="name">green-3</property>
+            <property name="name">green-3-round</property>
             <property name="width_request">20</property>
             <property name="height_request">52</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-repeat-round-vround0">
-            <property name="name">green-3</property>
+            <property name="name">green-3-round</property>
             <property name="width_request">20</property>
             <property name="height_request">52</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-repeat-round-vround1">
-            <property name="name">green-3</property>
+            <property name="name">green-3-round</property>
             <property name="width_request">20</property>
             <property name="height_request">52</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-round-hround0">
-            <property name="name">yellow-3</property>
+            <property name="name">yellow-3-round</property>
             <property name="width_request">52</property>
             <property name="height_request">20</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-round-vround0">
-            <property name="name">green-3</property>
+            <property name="name">green-3-round</property>
             <property name="width_request">20</property>
             <property name="height_request">52</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-round-hround1">
-            <property name="name">yellow-3</property>
+            <property name="name">yellow-3-round</property>
             <property name="width_request">52</property>
             <property name="height_request">20</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-round-vround1">
-            <property name="name">green-3</property>
+            <property name="name">green-3-round</property>
             <property name="width_request">20</property>
             <property name="height_request">52</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-space-round-vround0">
-            <property name="name">green-3</property>
+            <property name="name">green-3-round</property>
             <property name="width_request">20</property>
             <property name="height_request">52</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-space-round-vround1">
-            <property name="name">green-3</property>
+            <property name="name">green-3-round</property>
             <property name="width_request">20</property>
             <property name="height_request">52</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-space-hround0">
-            <property name="name">yellow-3</property>
+            <property name="name">yellow-3-round</property>
             <property name="width_request">52</property>
             <property name="height_request">20</property>
             <property name="visible">True</property>
         </child>
         <child>
           <object class="GtkToolbar" id="toolbar-round-space-hround1">
-            <property name="name">yellow-3</property>
+            <property name="name">yellow-3-round</property>
             <property name="width_request">52</property>
             <property name="height_request">20</property>
             <property name="visible">True</property>
index 4be3907bcef8be141dd70ca1604bb08db394c97f..58fb40430fa7f15278e4c74bfcecb048fd16de19 100755 (executable)
@@ -61,7 +61,7 @@ EOF
 cat << EOF
         <child>
           <object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-hround$side">
-            <property name="name">yellow-3</property>
+            <property name="name">yellow-3-round</property>
             <property name="width_request">52</property>
             <property name="height_request">20</property>
             <property name="visible">True</property>
@@ -149,7 +149,7 @@ EOF
 cat << EOF
         <child>
           <object class="GtkToolbar" id="toolbar-$hrepeat-$vrepeat-vround$side">
-            <property name="name">green-3</property>
+            <property name="name">green-3-round</property>
             <property name="width_request">20</property>
             <property name="height_request">52</property>
             <property name="visible">True</property>